﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Lsk.Business;
using Lsk.Data;
using Lsk.Business.DTO;


namespace lsk.Web.Api
{
    public class NewsController : ApiController
    {
        [HttpGet]
        //[Authorize]
        public IEnumerable<GetNews_Result> GetNews()
        {
            Lsk.Business.News newManager = new Lsk.Business.News();
            return newManager.GetNews();
        }
        
        [HttpGet]
        public NewsMessage GetNew(string id)
        {
            Lsk.Business.News newManager = new Lsk.Business.News();           
            return newManager.GetNew(id);
           
        }

      
    }
}